package cn.tedu.charging.order.dao.mapper;

import cn.tedu.charging.order.pojo.po.ChargingBillSuccessPO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper// 告诉spring-boot这是一个mapper
public interface OrderSuccessMapper extends BaseMapper<ChargingBillSuccessPO> {
    /**
     * mybatis用法
     * 两种用法
     * 1 注解  @Select @Update() @Insert
     * 2 xml  注意 共存要用 mybatis-plus:mapper-locations
     * @param po
     * @return
     */
//    @Insert("insert into charging_bill_success (bill_id) values (#{billId})")
//    Integer insertOrder(ChargingBillSuccessPO po);

    //Invalid bound statement (not found):
    // 接口里定义了方法,没有实现这个方法
    //   1  没加注解   @Select @Update() @Insert
    //   2  找不到xml  mybatis:mapper-locations 应该用  mybatis-plus:mapper-locations
    // cn.tedu.charging.order.mapper.OrderSuccessMapper.insertOrderOther
//    Integer insertOrderOther(ChargingBillSuccessPO po);
}
